<!DOCTYPE html>
<html  lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>发放单详情</title>
    <th:block th:include="~{common/common::commonHead}"/>
</head>
<!-- /Head -->
<!-- Body -->
<body data-width="800" data-height="450">
<!-- Page Body -->
        <div class="widget-body grid-table">
            <div id="releaseSlipInfo"></div>
        </div><!-- end of panel -->

<!--</div>-->
</body>
<!--  /Body -->
</html>
<script>
    $(function() {
        $("#releaseSlipInfo").gridTable({
            url: "releaseSlip/listReleaseSlipDetail",
            columns: [
                {title: "商品图片", field: "goodsImg", format: toImg},
                {title: "商品名称", field: "goodsName"},
                {title: "商品总数", field: "count", dataType: "number"},
                {title: "犯人姓名", field: "prisonsName"},
                {title: "监区", field: "area"}
            ],
//            params: $.getUrlParams(),
            showCheckbox: false,
            onDoubleClickRow: function () {},
            showControl: false
        })
    });
    function toImg(url) {
        return "<img src='"+url+"' width='40' height='40'>";
    }
</script>